<template>
	<div class="box">
		<activitiesNewBot :recordata="arraydata" :contentdata="contentdata"></activitiesNewBot>
	</div>
</template>

<script>
	import activitiesNewBot from "../../../components/activitiesNewBot";
	export default {
		props: {
			list: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {
				arraydata: {},
				contentdata: "",
			}
		},
		components: {
			activitiesNewBot,
		},
		methods: {
			onedata() {
				this.arraydata = this.list[0]
				if(this.arraydata) {
					this.contentdata = this.list[0].extendField
				}
			}
		},
		created() {

		},
		watch: {
			list() {
				this.onedata()
			}
		},
		mounted() {
			this.onedata()
		}
	}
</script>

<style>

</style>